package com.java2104.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_delivery_address",resultMap = "rmDeliveryAddress")
public class DeliveryAddress {
    @TableId(type = IdType.AUTO)
    private Integer id;//id
    @TableField(value = "user_id",property = "userMessage.id")
    private UserMessage userMessage;//用户ID
    private String postcode;//邮编
    @TableField("detailed_address")
    private String detailedAddress;//详细地址
    private String addressee;//收件人
    @TableField("phone_number")
    private String phoneNumber;//电话号码
    private String province;//省
    private String city;//市
    private String district;//区
}
